﻿using System.Collections.Generic;
using PgBirdie.Core.Model.Database.AccessControl;

namespace PgBirdie.Core.Model.Database.Structure
{
    public class PgSequence : PgDbObject, IPgOwner, IPgPrivileges
    {
        public PgSchema Schema { get; set; }

        public long StartWith { get; set; }
        public long IncrementBy { get; set; }
        public long MinValue { get; set; }
        public long MaxValue { get; set; }
        public long Cache { get; set; }

        public PgOwner Owner { get; set; }
        public IDictionary<string, PgPrivilege> Privileges { get; set; }

        public PgSequence()
        {
            Privileges = new Dictionary<string, PgPrivilege>();
        }
    }
}